import request from "@/utils/request.js";
const user = {
    // 账号密码登录
    userLogin: data => request.post("/api/user/login", data, { noAuth: true }),
    
    // 第三方登录
    userThirdLogin: data => request.post("/api/user/third", data, { noAuth: true }),
    
    // 获取用户信息
    getUserInfo: () => request.get("/api/user/info")
}
export default user;